textview: Ensure popup menu is properly inserted
authorMatthias Clasen <mclasen@redhat.com>
Sun, 10 May 2020 13:16:32 +0000 (09:16 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 10 May 2020 20:25:28 +0000 (16:25 -0400)
commit10921aa23734524e7d4ff04ff31a6c10bb261c26
tree84980574d6488ad8a365638d1f45ee093f378d9c
parent3f548327b56d5751b2d9899ee9a3ed8ba4793afe
textview: Ensure popup menu is properly inserted

In the presence of attached children, the css tree and the
widget tree are not in sync, so we need to explicitly set
the parent of the css node before inserting the widget, or
else we end up with critical warnings and a non-working
menu.

This can be seen in testtextview.
gtk/gtktextview.c